package so.sao.code.service.repository;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;
import so.sao.code.service.domain.entity.TagBatchConfig;

import java.util.List;

@Repository
public interface TagBatchConfigDao
        extends PagingAndSortingRepository<TagBatchConfig, Long>, JpaSpecificationExecutor<TagBatchConfig> {
    TagBatchConfig findByTagBatchId(Long tagBatchId);

    List<TagBatchConfig> findByIdIn(List<Long> ids);

	List<TagBatchConfig> findByTerminalIdAndDownloadMethod(Long terminalId, int downloadMethod);

}
